.class public Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
.source "CleanAdapter.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
        "Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;",
        ">;"
    }
.end annotation


# instance fields
.field private a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/ei;",
            ">;"
        }
    .end annotation
.end field

.field private b:[Z

.field private c:Landroid/content/Context;

.field private d:I


# direct methods
.method public constructor <init>(Landroid/content/Context;I)V
    .locals 0

    .line 1
    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->c:Landroid/content/Context;

    .line 3
    iput p2, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->d:I

    .line 4
    new-instance p1, Landroid/os/Handler;

    invoke-direct {p1}, Landroid/os/Handler;-><init>()V

    .line 5
    new-instance p1, Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-direct {p1}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->a:Ljava/util/List;

    return-void
.end method

.method private d(I)Les/ei;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->a:Ljava/util/List;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 2
    :cond_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge p1, v0, :cond_2

    if-gez p1, :cond_1

    goto :goto_0

    .line 3
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/ei;

    return-object p1

    :cond_2
    :goto_0
    return-object v1
.end method

.method private e(I)I
    .locals 1

    .line 1
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result p1

    return p1
.end method


# virtual methods
.method public a(Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;)V
    .locals 0

    .line 12
    invoke-super {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->onViewRecycled(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)V

    return-void
.end method

.method public a(Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;I)V
    .locals 3

    .line 6
    invoke-virtual {p0, p2}, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->getItemViewType(I)I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    return-void

    .line 7
    :cond_0
    invoke-direct {p0, p2}, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->d(I)Les/ei;

    move-result-object p2

    if-nez p2, :cond_1

    return-void

    .line 8
    :cond_1
    iget-object v0, p1, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;->b:Landroid/widget/TextView;

    invoke-virtual {p2}, Les/ei;->h()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 9
    iget-object v0, p1, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;->e:Landroid/widget/TextView;

    invoke-virtual {p2}, Les/ei;->o()J

    move-result-wide v1

    invoke-static {v1, v2}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 10
    iget-object v0, p1, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;->a:Landroid/widget/ImageView;

    invoke-virtual {p2, v0}, Les/ei;->a(Landroid/widget/ImageView;)V

    .line 11
    iget-object p1, p1, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;->d:Landroid/widget/TextView;

    invoke-virtual {p2}, Les/ei;->m()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/ei;",
            ">;)V"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 3
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    new-array p1, p1, [Z

    iput-object p1, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->b:[Z

    const/4 v0, 0x0

    .line 4
    invoke-static {p1, v0}, Ljava/util/Arrays;->fill([ZZ)V

    .line 5
    invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    return-void
.end method

.method public getItemCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->a:Ljava/util/List;

    if-eqz v0, :cond_1

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    return v0

    :cond_1
    :goto_0
    const/4 v0, 0x0

    return v0
.end method

.method public getItemViewType(I)I
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->getItemCount()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-lt p1, v0, :cond_0

    const/4 p1, -0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public bridge synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 0

    .line 1
    check-cast p1, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;

    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->a(Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;I)V

    return-void
.end method

.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 0

    .line 1
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;

    move-result-object p1

    return-object p1
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;
    .locals 2

    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 2
    new-instance p2, Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-direct {p2, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 3
    new-instance p1, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v0, 0x12c

    iget v1, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->d:I

    invoke-direct {p1, v0, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 4
    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const/4 p1, 0x4

    .line 5
    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 6
    new-instance p1, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;

    invoke-direct {p1, p2}, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;-><init>(Landroid/view/View;)V

    return-object p1

    .line 7
    :cond_0
    iget-object p2, p0, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->c:Landroid/content/Context;

    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const v0, 0x7f0c01f8

    const/4 v1, 0x0

    invoke-virtual {p2, v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 8
    new-instance p2, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;

    invoke-direct {p2, p1}, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;-><init>(Landroid/view/View;)V

    .line 9
    iget-object p1, p2, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;->b:Landroid/widget/TextView;

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f06013a

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 10
    iget-object p1, p2, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;->e:Landroid/widget/TextView;

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f060137

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 11
    iget-object p1, p2, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;->c:Landroid/widget/TextView;

    invoke-direct {p0, v1}, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->e(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 12
    iget-object p1, p2, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;->d:Landroid/widget/TextView;

    invoke-direct {p0, v1}, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->e(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 13
    iget-object p1, p2, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;->f:Landroid/view/View;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    return-object p2
.end method

.method public bridge synthetic onViewRecycled(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)V
    .locals 0

    .line 1
    check-cast p1, Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;

    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/cleaner/CleanAdapter;->a(Lcom/estrongs/android/pop/app/cleaner/viewholder/ScanResultItemViewHolder;)V

    return-void
.end method
